home *** CD-ROM | disk | FTP | other *** search
/ Languguage OS 2 / Languguage OS II Version 10-94 (Knowledge Media)(1994).ISO / gnu / ispell40.lha / ispell-4.0 / ispell.h < prev    next >
C/C++ Source or Header  |  1993-05-31  |  4KB  |  171 lines

  1. /* Copyright (C) 1990, 1993 Free Software Foundation, Inc.
  2.  
  3.    This file is part of GNU ISPELL.
  4.    
  5.    This program is free software; you can redistribute it and/or modify
  6.    it under the terms of the GNU General Public License as published by
  7.    the Free Software Foundation; either version 2, or (at your option)
  8.    any later version.
  9.  
  10.    This program is distributed in the hope that it will be useful,
  11.    but WITHOUT ANY WARRANTY; without even the implied warranty of
  12.    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
  13.    GNU General Public License for more details.
  14.  
  15.    You should have received a copy of the GNU General Public License
  16.    along with this program; if not, write to the Free Software
  17.    Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.  */
  18.  
  19. #define VERSION_STRING version
  20. extern char version[];
  21.  
  22. #ifdef NOARGS
  23. #undef NOARGS
  24. #endif
  25.  
  26. #ifdef __STDC__
  27. #define NOARGS void
  28. #else
  29. #define NOARGS
  30. #endif
  31.  
  32. #define MAXPOS 10
  33. #define MAX_WORD_LEN 40
  34.  
  35. typedef char posbuf[MAXPOS][MAX_WORD_LEN];
  36.  
  37. struct sp_corrections
  38. {
  39.   int nwords;
  40.   int mandantory;
  41.   posbuf posbuf;
  42. };
  43.  
  44. enum formatter
  45. {
  46.   formatter_generic, formatter_troff, formatter_tex
  47. };
  48.  
  49. extern enum formatter formatter;
  50. extern char **lexdecode;
  51. extern char near_miss_letters[];
  52. extern int nnear_miss_letters;
  53. extern char near_map[];
  54. extern int interaction_flag;
  55.  
  56. #if defined(USG) || defined (STDC_HEADERS)
  57. #include <string.h>
  58. #define index strchr
  59. #define rindex strrchr
  60. #define bcopy(s, d, n)  (memcpy ((d), (s), (n)))
  61. #define bcmp(s1, s2, n)  (memcmp ((s1), (s2), (n)))
  62. #define bzero(d, n)  (memset ((d), 0, (n)))
  63. #else
  64. #include <strings.h>
  65. #endif
  66.  
  67. #ifdef __STDC__
  68.  
  69. void *xmalloc (int);
  70. void *xcalloc (int, int);
  71.  
  72. void usage (void);
  73. RETSIGTYPE intr (void);
  74. void done (void);
  75. void submode (void);
  76. int subcmd (char *);
  77.  
  78. int cmd_insert (char *);
  79. int cmd_accept (char *);
  80. int cmd_delete (char *);
  81. int cmd_dump (char *);
  82. int cmd_reload (char *);
  83. int cmd_file (char *);
  84. int cmd_tex (char *);
  85. int cmd_troff (char *);
  86. int cmd_generic (char *);
  87.  
  88. void signon (void);
  89.  
  90. void dofile (char *);
  91. void terminit (void);
  92. void termuninit (void);
  93. int p_load (char *, int);
  94. int p_dump (char *);
  95. int p_enter (char *, int, int);
  96. int p_delete (char *);
  97. int p_reload (void);
  98. int p_lookup (char *, int);
  99. void prhashchain (void);
  100. void hash_write (FILE *);
  101. void hash_awrite (FILE *);
  102. void hash_ewrite (FILE *);
  103. void askmode (int);
  104. void spellmode (int, char **, int);
  105. void checkfile (FILE *, FILE *, long);
  106. int makepossibilities (char *);
  107. int good (char *, int, int);
  108. void downcase (char *, char *);
  109. void fixcase (char *word, struct sp_corrections *c);
  110. void addchars (char *);
  111. void checkfile (FILE *, FILE *, long);
  112. int skip_to_next_word (FILE *);
  113. int correct (char*, unsigned int, char *, char *, char **);
  114. int dochild (void (*) (NOARGS));
  115. int skip_to_next_word_troff (void);
  116. int skip_to_next_word_tex (FILE *);
  117. int skip_to_next_word_generic (void);
  118. void lexalloc (void);
  119. int lexword (char *, int, unsigned char *);
  120. unsigned short nextprime (unsigned short);
  121.  
  122. void inverse (void);
  123. void normal (void);
  124. void move (int, int);
  125. void stop (void);
  126. void termbeep (void);
  127. void shellescape (char *);
  128. void inserttoken (char *, char *, char *, char *, char **);
  129. void termflush (void);
  130. void dolook_interactive (char *);
  131. void backup (void);
  132. void erase (void);
  133. void termreinit (void);
  134.  
  135. #else /* ! __STDC__ */
  136.  
  137. extern void *xmalloc ();
  138. extern void *xcalloc ();
  139.  
  140. extern void dofile ();
  141. extern void terminit ();
  142. extern void termuninit ();
  143. extern void prhashchain ();
  144. extern void hash_write ();
  145. extern void hash_awrite ();
  146. extern void hash_ewrite ();
  147. extern void askmode ();
  148. extern void spellmode ();
  149. extern void checkfile ();
  150. extern void downcase ();
  151. extern void fixcase ();
  152. extern void addchars ();
  153. extern void checkfile ();
  154. extern void lexalloc ();
  155.  
  156. extern void inverse ();
  157. extern void normal ();
  158. extern void move ();
  159. extern void stop ();
  160. extern void termbeep ();
  161. extern void shellescape ();
  162. extern void inserttoken ();
  163. extern void termflush ();
  164. extern void dolook_interactive ();
  165. extern void backup ();
  166. extern void erase ();
  167. extern void termreinit ();
  168. extern void submode ();
  169.  
  170. #endif /* ! __STDC__ */
  171.